home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5442 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: sn.no!not-for-mail
  2. From: christon@sn.no (Christopher Naas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help on Changing Colours
  5. Date: 14 Mar 1996 17:37:01 +0100
  6. Organization: SN Internett
  7. Message-ID: <1092.6647T982T2285@sn.no>
  8. References: <4i42k4$4dg@trog.dra.hmg.gb>
  9. NNTP-Posting-Host: sinsen.sn.no
  10. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  11.  
  12. David Spring wrote:
  13.  
  14. >I've got a what is probably a simple problem:-
  15. >In assembler I have done the following:-
  16. >Open Intuition.library
  17. >Open Graphics.library
  18. >OpenScreenTagList
  19. >OpenWindowTagList
  20. >SetRGB4
  21. >CloseWindow
  22. >CloseScreen
  23. >Close Graphics.library
  24. >Close Intuition.library
  25. >The problem is that the colour changes on the screen which executed
  26. >the program. So if was run from Workbench then the colour would change
  27. >on that screen, and from Monam the same thing happens.
  28. >I have tried using GetColourMap and FreeColourMap as a last resort
  29. >before and after the SetRGB4 statement.
  30. >Can anyone tell me if the SetRGB32 statement has the same parameters
  31. >as the SetRGB4 one?
  32.  
  33. SetRGB4(  vp, n,   r,    g,    b)
  34. SetRGB32(  vp,  n,   r,    g,    b)
  35.  
  36. You have to use the pointer to the viewport for screen you opened and not the
  37. default public screen.
  38.  
  39. So, your call would be:
  40.  
  41. SetRGB4 (MyScreen.ViewPort, 0, 2, 2, 2);
  42.  
  43.  
  44. --
  45. Christopher Landmark Naas    o  EMail: christon@sn.no
  46. LoungeBar Development        o  WWW:   http://www.sn.no/~christon/
  47. Former Reg. Amiga Developer  o  IRC:   KarmaComa
  48.